%Snap-on and pull-off distances (nm) of all GO probes
Snap_GO=[529.36 425.97 495.3 305.41]; %Tip 14 18 19 24
Pull_GO=[3618.2 2757.3 3746.4 2769.0];

%Snap-on and pull-off distances (nm) of all rGO1 probes
Snap_1rGO=[985.71 1109.6 1050.3 898.66]; %Tip 14 18 19 24
Pull_1rGO=[4855.8 5025.1 4547.2 4438.4];

%Snap-on and pull-off distances (nm) of all rGO10 probes
Snap_10rGO=[1392.7 903.85 1384.3]; %Tip 14 18 19
Pull_10rGO=[5355.1 4120.8 4459.6];

fig = figure;
left_color = [1 0 0];
right_color = [0 0 1];
set(fig,'defaultAxesColorOrder',[left_color; right_color]);

yyaxis left
Snap=[mean(Snap_GO) mean(Snap_1rGO) mean(Snap_10rGO)];
x=[0.9 1.9 2.9];
plot(x,Snap/1000,'.r-','MarkerSize',15,'Color','r','LineWidth',0.7)
err_Snap=[std(Snap_GO) std(Snap_1rGO) std(Snap_10rGO)]
%errorbar(x,Snap/1000,err_Snap/1000,'r-','linewidth',1) %Plot average snap-on distances against reduction level
ylabel('Snap-on Distance (\mum)')

hold on
% Tip 14
x=[0.85 1.85 2.85];
Snap=[529.36 985.71 1392.7];
plot(x,Snap/1000,'*r', 'MarkerSize',10)

hold on
% Tip 18
x=[0.85 1.85 2.85];
Snap=[425.97 1109.6 903.85];
plot(x,Snap/1000,'xr', 'MarkerSize',10)

hold on
% Tip 19
x=[0.95 1.95 2.95];
Snap=[495.3 1050.3 1384.3];
plot(x,Snap/1000,'or', 'MarkerSize',8)

hold on
% Tip 24
x=[0.95 1.95];
Snap=[305.41 898.66];
plot(x,Snap/1000,'sr', 'MarkerSize',10)

hold on
yyaxis right
x=[1.05 2.05 3.05];
Pull=[mean(Pull_GO) mean(Pull_1rGO) mean(Pull_10rGO)];
err_Pull=[std(Pull_GO) std(Pull_1rGO) std(Pull_10rGO)];


%errorbar(x,Pull/1000,err_Pull/1000,'b-','linewidth',1) %Plot average pull-off distances against reduction level
plot(x,Pull/1000,'.b-','MarkerSize',15,'Color','b','LineWidth',0.7)
xticks([0 1 2 3 4])
xticklabels({' ','0','1','10',' '})
ylabel('Pull-off Distance (\mum)')

hold on
% Tip 14
x=[1.05 2.05 3.05];
Pull=[3618.2 4855.8 5355.1];
plot(x,Pull/1000,'*b', 'MarkerSize',10)

hold on
% Tip 18
x=[1.05 2.05 3.05];
Pull=[2757.3 5025.1 4120.8];
plot(x,Pull/1000,'xb', 'MarkerSize',10)

hold on
% Tip 19
x=[1.15 2.15 3.15];
Pull=[3746.4 4547.2 4459.6];
plot(x,Pull/1000,'ob', 'MarkerSize',8)

hold on
% Tip 24
x=[1.15 2.15];
Pull=[2769.0 4438.4];
plot(x,Pull/1000,'sb', 'MarkerSize',10)
